export default {
    mounted(el, binding) {
        let timer;
        el.addEventListener('click', () => {
            if (timer) return;
            timer = setTimeout(() => {
                timer = null;
            }, binding.arg || 300); // 默认 1s 内无法重复点击
            binding.value();
        });
    },
};